/*
 * Main.java
 *
 * Created on December 19, 2007, 8:38 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package filearray;
import java.io.*;
import java.util.Scanner;
/**
 *
 * @author Maria Freiman
 */
class fileArray {
    

    public static void main(String[] args)throws IOException
    {
        
        
        //create an output stream to the file
       FileOutputStream output = new FileOutputStream("temp.txt");
        
        //Output values to the file
       Scanner input = new Scanner (new File ("temp.txt"));
       System.out.println(input.nextLine());
        
       // System.out.println("Message from the main method");
       // writeArray();
        
        //close the ouput stream
        output.close();
    }
}       

    
  //  public static void writeArray()
   // {
        //Read values from the file
       // char value;
        
        //write text to a file named myFile.txt
       // PrintWriter output=new PrintWriter("myFile.txt");
        
        
        //System.out.println("Message from the sub method");
//    }

